<!DOCTYPE html>
<html xmlns:shiro="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="@{include} :: header"></head>
<body>
<div class="layuimini-container">
	<div class="layuimini-main">
		<fieldset class="table-search-fieldset">
			<legend>搜索信息</legend>
			<form class="layui-form layui-form-pane" action="">
<!--				<input type="hidden" id="shopId" name="shopId" th:value="${shopId}" />-->
<!--				<input type="hidden" id="userType" name="userType" th:value="${userType}" />-->
<!--				<input type="hidden" id="townId" name="townId" th:value="${townId}" />-->
				<input type="hidden" id="shopId" name="shopId" th:value="${shopId}" />
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">姓名</label>
						<div class="layui-input-inline">
							<input type="text" id="searchName" name="searchName" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">部门</label>
						<div class="layui-input-inline">
							<select id="deptId" name="deptId" class="layui-input"  lay-search="">
								<option value="">所属部门</option>
								<th:block th:each="d : ${deptList}">
									<option th:value="${d.id}" th:text="${d.name}" ></option>
								</th:block>
							</select>
						</div>
					</div>
					<div class="layui-inline">
						<button type="submit" class="layui-btn layui-btn-primary  layui-btn-sm" lay-submit lay-filter="data-search-btn">
							<i class="layui-icon"></i> 搜 索</button>
					</div>
				</div>
			</form>
		</fieldset>
		<script type="text/html" id="toolbarDemo">
			<div class="layui-btn-container">
				<button class="layui-btn layui-btn-sm data-add-btn" lay-event="back">
					<i class="fa fa-reply" aria-hidden="true"></i>&nbsp;返回
				</button>
				<button shiro:hasPermission="sys:user:checkDanger:add" class="layui-btn layui-btn-sm data-add-btn" lay-event="add">添加</button>
				<button shiro:hasPermission="sys:user:checkDanger:import" class="layui-btn layui-btn-sm data-add-btn" lay-event="batchadd">批量导入</button>
			</div>
		</script>
		<table class="layui-hide" id="exampleTable" lay-filter="currentTableFilter"></table>
		<script type="text/html" id="currentTableBar">
			{{#  if(  d.wxNickName!=null &&   d.wxNickName!=''){ }}
			<a class="layui-btn layui-btn-xs data-count-edit" shiro:hasPermission="sys:user:checkDanger:edit" lay-event="unBind">解绑微信</a>
			{{#  } }}
			<a class="layui-btn layui-btn-xs data-count-edit" shiro:hasPermission="sys:user:checkDanger:edit" lay-event="edit">编辑</a>
			<a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" shiro:hasPermission="sys:user:resetPwd" lay-event="reset">重置密码</a>
			<a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete" shiro:hasPermission="sys:user:checkDanger:remove" lay-event="delete">删除</a>
		</script>
	</div>
</div>
<div th:include="@{include} :: footer"></div>
<script type="text/javascript" th:src="@{/js/appjs/sys/user/check_company_danger_user.js}"></script>
</body>
</html>
